﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;

namespace BLL.Order
{
    public class T_PUB_Order_Project
    {
        private readonly DALL.Order.T_PUB_Order_Project dal = new DALL.Order.T_PUB_Order_Project();

        /// <summary>
        /// 通过订单ID获得订单项目也可以用于主题婚礼
        /// </summary>
        /// <param name="strOrderID"></param>
        /// <returns></returns>
        public List<Model.Order.T_PUB_Order_Projectcs> GetOrderProject(string strOrderID)
        {
            string strWhere = string.Format(" OriderID='{0}'", strOrderID);
            return dal.GetListArray(strWhere);
        }
        public DataTable GetOrderProjectWithMater(string strOrderID)
        {
            string strWhere = string.Format(" and o_p.OriderID='{0}'", strOrderID);
            return dal.GetOrderProject(strWhere);
        }

    }
}
